projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ea48c4
)
tests: Use g_list_free_full() convenience function
author
Javier Jardón
<jjardon@gnome.org>
Mon, 2 Jan 2012 03:09:00 +0000
(
04:09
+0100)
committer
Javier Jardón
<jjardon@gnome.org>
Thu, 5 Jan 2012 03:22:42 +0000
(
04:22
+0100)
tests/testiconview.c
patch
|
blob
|
history
diff --git
a/tests/testiconview.c
b/tests/testiconview.c
index 053b7636e89b28568271ede6994182e80f853989..b926497513a04b1989fbe5ee4001540bdb8b9d2b 100644
(file)
--- a/
tests/testiconview.c
+++ b/
tests/testiconview.c
@@
-351,8
+351,7
@@
do_popup_menu (GtkWidget *icon_list,
if (list)
{
path = (GtkTreePath*)list->data;
- g_list_foreach (list->next, (GFunc) gtk_tree_path_free, NULL);
- g_list_free (list);
+ g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free);
}
}